﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using System.Drawing;

namespace PROJECT_BOMBER.BLL.Events
{
    public class MouseEvent
    {
        MouseState buttonPressed;
        Microsoft.Xna.Framework.Rectangle mouseDetection;

        public MouseEvent()
        {

        }

        public bool UpdateMouse()
        {
            buttonPressed = Mouse.GetState();

            if (buttonPressed.LeftButton == ButtonState.Pressed)
            {
                return true;
            }
            else
            {
                return false;      
            }
        }

        public Microsoft.Xna.Framework.Rectangle getMouseContainer()
        {
            mouseDetection = new Microsoft.Xna.Framework.Rectangle((int)buttonPressed.X,
                (int)buttonPressed.Y,
                (int)1,
                (int)1);
            return mouseDetection;
        }
    }
}
